//
// Created by HP on 2025/11/14.
//

#ifndef FLIGHTSERVER_USER_H
#define FLIGHTSERVER_USER_H
#include "Model.h"

class Role {
public:
    static const std::string User;
    static const std::string Student;
    static const std::string VIP;
    static const std::string SuperAdmin;
    static const std::string MaintenanceAdmin;
    static const std::string MoneyAdmin;
    static const std::string ContentAdmin;
    static const std::string frozen;
};

class User : public Model{
public:
    std::string Id;
    std::string Name;
    std::string Email;
    std::string Password;
    std::string Age;
    std::string IdCardNumber;
    std::string createdAt;
    std::string role;

    User() ;

    void update(const std::string& key, const std::string& value);

    void bind(const std::string& key, const std::string& value) ;

    bool save();
};


#endif //FLIGHTSERVER_USER_H
